package com.fay.effectivech4;

/**
 * @Title:
 * @Description:
 * @Author Fay Wang
 * @Date 2022/2/21 14:21
 * @Version 1.0
 */
public class Complex {
    private final double re;
    private final double im;

    private Complex(double re, double im) {
        this.re = re;
        this.im = im;
    }

    public static Complex valueOf(double re, double im) {
        return new Complex(re, im);
    }
}
